

import java.util.ArrayList;
import java.util.Scanner;

public class StudentManagementSystem {
    private static ArrayList<Student> students = new ArrayList<>();
    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        addStudent("沙猪","1314520");
        startexam(students.get(0),99);
        showScore(students.get(0));
    }

    private static void addStudent(String name,String id) {

        Student student = new Student(name, id);
        students.add(student);
        System.out.println("学生添加成功！");
    }
    private static void startexam(Student student, float score){
        student.exam(score);
    }

    private static void showScore(Student student) {
       System.out.println(student.name+":"+student.getScore());
    }
}
